home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Code / Chapter10 / targetviewpoint1.s3d < prev    next >
Text File  |  2000-07-12  |  2KB  |  88 lines

  1.  
  2. TargetViewpoint1 {}
  3.  
  4. Background {
  5.     color 1 1 1
  6. }
  7. DEF Box01 Transform {
  8.     translation 0 0 0
  9.     children [
  10.         Transform {
  11.             translation 0 -1 0
  12.             children [
  13.                 Shape {
  14.                     appearance [
  15.                         MultiAppearance {
  16.                             material Material {
  17.                                 diffuseColor 0.2549 1 0.2549
  18.                                 specularColor 0.045 0.045 0.045
  19.                                 shininess 0.25
  20.                                 transparency 0
  21.                             }
  22.                         }
  23.                         MultiAppearance {
  24.                             material Material {
  25.                                 diffuseColor 0 0.502 0
  26.                                 specularColor 0.045 0.045 0.045
  27.                                 shininess 0.25
  28.                                 transparency 0
  29.                             }
  30.                         }
  31.                         MultiAppearance {
  32.                             material Material {
  33.                                 diffuseColor 0.3569 0.3569 1
  34.                                 specularColor 0.045 0.045 0.045
  35.                                 shininess 0.25
  36.                                 transparency 0
  37.                             }
  38.                         }
  39.                         MultiAppearance {
  40.                             material Material {
  41.                                 diffuseColor 0 0 0.502
  42.                                 specularColor 0.045 0.045 0.045
  43.                                 shininess 0.25
  44.                                 transparency 0
  45.                             }
  46.                         }
  47.                         MultiAppearance {
  48.                             material Material {
  49.                                 diffuseColor 1 0.2235 0.2235
  50.                                 specularColor 0.045 0.045 0.045
  51.                                 shininess 0.25
  52.                                 transparency 0
  53.                             }
  54.                         }
  55.                         MultiAppearance {
  56.                             material Material {
  57.                                 diffuseColor 0.502 0 0
  58.                                 specularColor 0.045 0.045 0.045
  59.                                 shininess 0.25
  60.                                 transparency 0
  61.                             }
  62.                         }
  63.                     ]
  64.                     geometry MultiMesh {
  65.                         coord DEF Box01-COORD Coordinate {
  66.                             point [
  67.                                 -1 0 1 1 0 1 -1 0 -1 1 0 -1 -1 2 1 1 2 1 -1 2 -1 1 2 -1
  68.                             ]
  69.                         }
  70.                         coordIndex [
  71.                             0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  72.                             2 0 4 -1 4 6 2 -1
  73.                         ]
  74.                         smoothingIndex [
  75.                             1 -1 1 -1 1 -1 1 -1 2 -1 2 -1 3 -1 3 -1 2 -1 2 -1 3 -1 3 -1
  76.                         ]
  77.                         appearanceIndex [
  78.                             1 1 0 0 2 2 4 4 3 3 5 5
  79.                         ]
  80.                         textureMappings [
  81.                         ]
  82.                     }
  83.                 }
  84.             ]
  85.         }
  86.     ]
  87. }
  88.